<%@page import="com.baoyanghui.common.Constants"%>
<%@page import="com.baoyanghui.config.Configs"%>
<%@page import="com.baoyanghui.common.Utils"%>
<%@page import="com.baoyanghui.common.InterfaceAccess"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	if (Utils.empty((String)request.getSession().getAttribute(Configs.SESSION_USER_ID))
			|| (Constants.USER_TYPE_CUSTOMER == (Integer)request.getSession().getAttribute(Configs.SESSION_USER_TYPE))) {
		response.getWriter().print("<script type='text/javascript'>\n");
		response.getWriter().print("window.location.href='" + request.getContextPath() + "/index.jsp';\n");
		response.getWriter().print("</script>\n");
		response.getWriter().flush();
		return;
	}
%>
<script type="text/javascript" src="../js/search_customer.js"></script>
<img class="pointer fade_effect" src="<%= request.getContextPath() %>/image/icon_add.png" alt="" 
	style="margin-left: 35px;" onclick="show_add_customer_tab();"/>
<img src="<%= request.getContextPath() %>/image/icon_search_off.png" alt="" /><br/>
<h2 style="margin-left: 15px;">查找用户</h2>
<div style="margin: 0px 15px; border: 1px dashed gray;">
	<form style="margin: 10px 0px;">
			<label>查找：</label>
			<select id="search_field" style="width: 150px; height: 26px; font-size: 12pt;">
				<option value="1">用户姓名</option>
				<option value="2">用户手机</option>
				<option value="3">车牌</option>
				<option value="4">车型</option>
			</select>
			<input type="text" id="customer_keyword" name="customer_keyword"/>
			<img class="pointer fade_effect" src="../image/btn_search.png" align="top" onclick="searchCustomer();">
	</form>
</div>
<div id="div_result" style="visibility: hidden;">
	<h2 style="margin-left: 15px; margin-top: 25px;">查找结果</h2>
	<div style="margin-left: 15px;">
		<div style="padding-top: 10px;">
			<img class="col_title" src="<%= request.getContextPath() %>/image/col_name.png" />
			<img class="col_title" src="<%= request.getContextPath() %>/image/col_license.png" />
			<img class="col_title" src="<%= request.getContextPath() %>/image/col_model.png" />
			<img class="col_title" src="<%= request.getContextPath() %>/image/col_mobile.png" />
			<div style="clear: both;"></div>
		</div>
		<div id="div_search_result">
		</div>
	</div>
</div>
<div id="div_noresult" style="margin-left: 15px; margin-top: 25px; visibility: hidden;">
	未找到相关用户，请更换关键字再次查询。
</div>